/**
 * Copyright (c) 2012, Camelot and/or its affiliates. All rights reserved.
 * Camelot PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.camelot.ccr.system.controller;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.camelot.ccr.global.controller.BaseController;
import com.camelot.ccr.system.dao.PictureDao;
import com.camelot.ccr.system.persistence.Picture;

/**
 * <pre>
 * <首页所有内容>
 * </pre>
 * @author Liu Jun
 * @version V0.1, 2014-5-24 下午3:28:10
 */
@Controller

public class Index1Controller extends BaseController {
	
	@Resource
	private PictureDao pictureDao;
	
	@RequestMapping("/index")
	public String index(ModelMap model){
		
		List<Picture> pictureList = pictureDao.getAll();
		model.put("pictureList", pictureList);
		return "../../index";
	}
	
}
